---------------------------------------------
--  Mobskill: Touchdown
--
--  Description: Deals magical damage to
--  enemies in an AoE upon landing.
--  Type: Magical
--  Utsusemi/Blink absorb: Wipes shadows
--  Range: Unknown radial
--  Notes: Used automatically whenever a wyrm
--  returns to the ground. Doesn't occur if
--  Ouryu was grounded by Mistmelt. Bahamut
--  uses this as a standard TP move. 
---------------------------------------------

require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");

---------------------------------------------

function OnMobSkillCheck(target,mob,skill)
	return 1;
end;

function OnMobWeaponSkill(target, mob, skill)
	local dmgmod = 1;
	local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*4,ELE_NONE,dmgmod,TP_NO_EFFECT);
	local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_NONE,MOBPARAM_WIPE_SHADOWS);
	target:delHP(dmg);
	mob:delStatusEffect(EFFECT_ALL_MISS);
	mob:SetMobSkillAttack(false);
	mob:AnimationSub(2);
	return dmg;
end;